<template>
	<view class="">
		<!-- 头部 -->
		<view class="header_bar header_fixed header_main">
			<view class="header">
				<view class="header-goBack" @click="$tools.back(1)"></view>
				<view class="header-title"></view>
			</view> 
		</view> 
		
		<view class="inDetails">
			<view class="inDetails-title">{{ itemObj.title }}</view>
			<view class="inDetails-time">
				<view class="times">{{ itemObj.createTime }}</view>
			</view>
			
			<!--  v-html="newsContent" @tap.stop="getCopyUrl()" ref="richContent" -->
			<view class="inDetails-content">
				<rich-text :nodes="newsContent" 
				@itemclick="getItemclick"
				class="textImage" style="color:#000000;font-size: 34rpx;font-weight: 400;line-height: 56rpx;"></rich-text>
			</view>
			
		</view>
		
	</view>
</template>

<script>
	export default {
		components:{
		},
		data(){
			return{
				itemObj: {},
				newsContent: ''
			}
		},
		onLoad(options) {
			if(options.value1){
				this.itemObj = JSON.parse(decodeURIComponent(options.value1));
				this.newsContent = this.itemObj.content.replace(/<img/g, "<img style='width:100%;margin: 15px 0;'");
			}
			console.log(this.itemObj)
		},
		onShow() {
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	
</style>